package cn.myCoils;

import cn.TcpService.CoilSchedule;
import cn.tcp.TcpNewUtil;

public class CoilTask2  {
	private int decid;
	private int switchid;
	private long delay;
	private boolean writeValue;
	public int getDecid() {
		return decid;
	}

	public void setDecid(int decid) {
		this.decid = decid;
	}

	public int getSwitchid() {
		return switchid;
	}

	public void setSwitchid(int switchid) {
		this.switchid = switchid;
	}

	public long getDelay() {
		return delay;
	}

	public void setDelay(long delay) {
		this.delay = delay;
	}

	public boolean isWriteValue() {
		return writeValue;
	}

	public void setWriteValue(boolean writeValue) {
		this.writeValue = writeValue;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public CoilSchedule getCs() {
		return cs;
	}

	public void setCs(CoilSchedule cs) {
		this.cs = cs;
	}

	public int getCurrentSwitchid() {
		return CurrentSwitchid;
	}

	public void setCurrentSwitchid(int currentSwitchid) {
		CurrentSwitchid = currentSwitchid;
	}
	private String host;
	private boolean flag = true;
	private CoilSchedule cs;
	private int CurrentSwitchid;
	private TcpNewUtil tnu;

	public CoilTask2(int deviceID, int switchID, boolean wirteValue, long delay) {
		this.decid = deviceID;
		this.switchid = switchID;
		this.delay = delay;
		this.host = "192.168.1.122";
		this.writeValue = wirteValue;
	}

}
